package com.mikao.dao;

import com.mikao.entity.UserBank;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface UserBankDao extends JpaRepository<UserBank, Long>, JpaSpecificationExecutor {

    /**
     * 根据用户ID找到绑定的银行卡
     *
     * @param userId id
     * @return userbank
     */
    UserBank findAllByUserId(Long userId);
}
